﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using RDIFramework.BizLogic;
using XXX.Bo;
using XXX.Models.OtherEntities;
using XXX.Models.XXXEntities;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace XXX.api.Controllers
{
    /// <summary>
    /// 获取PDA的仓库权限
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class ST_PDAWarehouseAuthController : ControllerBase
    { 
        private readonly ILogger<ST_PDAWarehouseAuthController> _logger;
        public ST_PDAWarehouseAuthController(ILogger<ST_PDAWarehouseAuthController> logger)
        { 
            _logger = logger;
        }

        // GET: api/<DepartMentController>
        [HttpGet]
        public Models.RetModel<WMS_PDA_AUTH> Get(string cWhcode)
        {
            Models.RetModel<WMS_PDA_AUTH> ret = DBService.GetPdaWarehouseAuth(cWhcode);
            return ret;
            //return ReturnStd.Success(jsonstr);
        }

        

    }
}
